//
//  BottleButton.m
//  tour
//
//  Created by 123 on 16/4/16.
//  Copyright © 2016年 Jushi. All rights reserved.
//

#import "BottleButton.h"

@implementation BottleButton

- (void)layoutSubviews
{
    [super layoutSubviews];
    CGSize size = self.frame.size;
    float imageW = (ScreenH==480)?size.width-20:size.width-15;
    float imageX = (size.width-imageW)/2.0;
    float imageY = (ScreenH==480)?0:5;
    self.imageView.frame = CGRectMake(imageX,imageY,imageW,imageW);
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    self.titleLabel.frame = CGRectMake(0, size.height-15,size.width, 15);
}

@end
